import React from 'react'
import style from './style.module.scss'

interface ILeoButtonProps {
    to?: string
    isInvert?: boolean
    className?: string
    title: string
    onClick?: () => void
}

export default function LeoButton(props: ILeoButtonProps) {
    return (
        <a
            href={props.to}
            className={`${style.leo__button} ${props.isInvert ? 'invert' : ''} ${props.className}`}
            onClick={props.onClick}>
            {props.title}
        </a>
    )
}
